﻿<%@ Page Language="C#" MasterPageFile="~/InventoryTracker/MasterPage.master" AutoEventWireup="true" CodeFile="TaxScheme.aspx.cs" Inherits="InventoryTracker_TaxScheme" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="maincontent" Runat="Server">
<div id="projectreport">
        <a name="content_start0" id="content_start0"></a>
        <fieldset>
            <h2 class="none">
                Tax Scheme</h2>
            <legend>Tax Scheme</legend>
            <div class="formsection">
                Tax Scheme</div>
            
            <table style="height: 121px; width: 370px">
            <tr>
            <td>
            <asp:DropDownList ID="DdlSelTaxID" runat="server" AutoPostBack="True" 
                    DataSourceID="SqlDSTaxIDSel" DataTextField="TaxName" 
                    DataValueField="TaxID" 
                    onselectedindexchanged="DdlSelTaxID_SelectedIndexChanged"></asp:DropDownList>
                <asp:SqlDataSource ID="SqlDSTaxIDSel" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
                    SelectCommand="SELECT [TaxID], [TaxName] FROM [TaxScheme]">
                </asp:SqlDataSource>
            </td>
            
                <td>
                    <p style="width: 175px; height: 44px">
                        
                        <asp:Label ID="lblTaxName" runat="server" Text="Tax Name"></asp:Label>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtTaxName"
                        ErrorMessage="*" ></asp:RequiredFieldValidator>
                        <asp:TextBox ID="txtTaxName" runat="server"></asp:TextBox>
                    </p>
                    <p style="width: 175px; height: 44px">
                        <asp:Label ID="lblTaxPercent" runat="server" Text="Tax Percent"></asp:Label>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtTaxPercent"
                        ErrorMessage="*" ></asp:RequiredFieldValidator>
                        <asp:TextBox ID="txtTaxPercent" runat="server"></asp:TextBox>
                        <asp:Label ID="lblPerSymbol" runat="server" Text="%"></asp:Label>
                        
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator7" runat="server" 
                            ControlToValidate="txtTaxPercent" ErrorMessage="Enter only Numbers ." 
                            ValidationExpression="^\d*\.?\d*$"></asp:RegularExpressionValidator>
                    </p>
                    
            </td>
            
            </tr>
            </table>
            
            <asp:Label ID="lblWarn" runat="server" Text="* Required Fields" 
                ForeColor="Red"></asp:Label>
            <div class="formsection">
                <asp:Button ID="btnTaxSchemeSubmit" runat="server"  Text="Submit" 
                    onclick="btnTaxSchemeSubmit_Click"/>
                    
                     <asp:Button ID="btnTaxSchemeNew" runat="server" Text="New" 
                    onclick="btnTaxSchemeNew_Click"></asp:Button>
                    <asp:Button ID="btnTaxSchemeDelete" runat="server" Text="Delete" 
                    onclick="btnTaxSchemeDelete_Click"></asp:Button>
                    <asp:Button ID="btnTaxSchemeEdit" runat="server" Text="Edit" 
                    onclick="btnTaxSchemeEdit_Click"></asp:Button>
                    <asp:Button ID="btnTaxSchemeUpdate" runat="server" Text="Update" onclick="btnSupUpdate_Click" 
                    ></asp:Button>
                    
                <asp:Label ID="lblResult" runat="server" Text=""></asp:Label>
            </div>
        </fieldset>
    </div>
</asp:Content>

